﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

namespace DynaBoard
{
    public partial class Search : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        [WebMethod]
        public static SearchResult TitleSearch(string searchString, int? page)
        {
            return Post.TitleSearch(searchString, page);
        }

        [WebMethod]
        public static Thread[] BodySearch(string searchString, int? page)
        {
            return Post.BodySearch(searchString, page);
        }
    }
}
